<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%@include file="header.html" %>
<%@include file="banner.html" %>
<%@page import="com.action.OrderCart,entities.Product,java.util.*" %>
<%
out.println("<div class=\"ui four steps\">");
out.println("<div class=\"ui disabled step\">");
out.println("Shipping");
out.println("</div>");
out.println("<div class=\"ui disabled step\">");
out.println("Billing");
out.println("</div>");
out.println("<div class=\"ui active step\">");
out.println("Confirm Order");
out.println("</div>");
out.println("<div class=\"ui disabled step\">");
out.println("Complete");
out.println("</div>");
out.println("</div>");
//ArrayList products = (ArrayList)session.getAttribute("Products");
out.println("<form action = \"Register\" method =\"post\">");
out.println("<div class=\"ui celled list\">");
//if(products != null)
//for(int i = 0; i < products.size(); i ++)
//{
	Product p = (Product)session.getAttribute("Product");
		out.println("<div class=\"item\">");
		out.println("<img class=\"ui small image\" src=\"" +p.getImgpath() +"\">");
		out.println("<div class=\"content\">");
		out.println("<div class=\"header\">"+p.getName()+"</div>");
		out.println("</div>");
		out.println("<a class=\"ui orange label\">"+"Price: "+p.getPrice()*p.getDiscount()+"</a>");
		out.println("</div>");

//}
out.println("</div>");
%>
 <!--  <form action = "CompleteOrder" method ="post">
  <button class="ui red button" value = "submit" type="submit">Submit</button>
  </form> -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="PGAG9RD8QEZTY">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
  
<%@include file="footer.html" %>
</body>
</html>